package com.ruoyi.business.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.business.mapper.ManagementInfoMapper;
import com.ruoyi.business.domain.ManagementInfo;
import com.ruoyi.business.service.IManagementInfoService;

/**
 * 首页介绍项Service业务层处理
 * 
 * @author liwenjing
 * @date 2021-05-19
 */
@Service
public class ManagementInfoServiceImpl implements IManagementInfoService 
{
    @Autowired
    private ManagementInfoMapper managementInfoMapper;

    /**
     * 查询首页介绍项
     * 
     * @param id 首页介绍项ID
     * @return 首页介绍项
     */
    @Override
    public ManagementInfo selectManagementInfoById(Long id)
    {
        return managementInfoMapper.selectManagementInfoById(id);
    }

    /**
     * 查询首页介绍项列表
     * 
     * @param managementInfo 首页介绍项
     * @return 首页介绍项
     */
    @Override
    public List<ManagementInfo> selectManagementInfoList(ManagementInfo managementInfo)
    {
        return managementInfoMapper.selectManagementInfoList(managementInfo);
    }

    /**
     * 新增首页介绍项
     * 
     * @param managementInfo 首页介绍项
     * @return 结果
     */
    @Override
    public int insertManagementInfo(ManagementInfo managementInfo)
    {
        return managementInfoMapper.insertManagementInfo(managementInfo);
    }

    /**
     * 修改首页介绍项
     * 
     * @param managementInfo 首页介绍项
     * @return 结果
     */
    @Override
    public int updateManagementInfo(ManagementInfo managementInfo)
    {
        return managementInfoMapper.updateManagementInfo(managementInfo);
    }

    /**
     * 批量删除首页介绍项
     * 
     * @param ids 需要删除的首页介绍项ID
     * @return 结果
     */
    @Override
    public int deleteManagementInfoByIds(Long[] ids)
    {
        return managementInfoMapper.deleteManagementInfoByIds(ids);
    }

    /**
     * 删除首页介绍项信息
     * 
     * @param id 首页介绍项ID
     * @return 结果
     */
    @Override
    public int deleteManagementInfoById(Long id)
    {
        return managementInfoMapper.deleteManagementInfoById(id);
    }
}
